package com.alter.model;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 系统用户
 * 
 * @author a_alter
 */
@Entity
@Table(name = "SE_USER")
public class SeUser extends EnabledEntity {
    private static final long serialVersionUID = 1L;

    @Column(nullable = false)
    private String name;

    @Column(nullable = false)
    private String password;

    @OneToMany(mappedBy = "user")
    private List<AfPhotoAlbum> albums;
    
    @OneToMany(mappedBy = "user")
    private List<AfPersonalArticleType> articleTypes;

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public String getPassword() {
	return password;
    }

    public void setPassword(String password) {
	this.password = password;
    }

    public List<AfPhotoAlbum> getAlbums() {
	return albums;
    }

    public void setAlbums(List<AfPhotoAlbum> albums) {
	this.albums = albums;
    }

    public List<AfPersonalArticleType> getArticleTypes() {
        return articleTypes;
    }

    public void setArticleTypes(List<AfPersonalArticleType> articleTypes) {
        this.articleTypes = articleTypes;
    }
    

}
